import { CookieOptions, Response } from 'express';

export const respondWithoutCookie = <T>(res: Response, body: T, cookies: any[]) => {
  for (const cookie of cookies) {
    res.clearCookie(cookie);
  }

  return body;
};